<script type="text/javascript">
//id=""

$("input[name='ButterflyPortal_data_NOM']").change(function() {

	nom=$(this).val();


	$.get("/portlet.php",
			{app: "cabinet",
			operation:"getnewnumdossier",
			nom:nom
			},
			   function(data){
	            
				$("#ButterflyPortal_data_NUMERODEDOSSIER").val(data);
		

	

});

	
	
});


</script>
